package groupe22;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.tree.TreeCellRenderer;
import javax.swing.tree.TreeModel;

/**
 *
 * @author colle53
 */
public class VueArborescenceP extends JPanel implements Observeur{
    
    private JTree tree;
    private FileGestion fileGestion;
    
    public VueArborescenceP(FileGestion fg) {
        fileGestion = fg;
        this.setLayout(new BorderLayout());
        tree = new JTree(new AdaptateurModeP(fg));
        JScrollPane scroll=new JScrollPane(tree);
        this.add(scroll,BorderLayout.CENTER);
        //TreeCellRenderer renderer = new treecell();
        //tree.setCellRenderer(renderer);
        this.add(tree);
    }

    public void update() {
    }
    
}
